<@html>
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.NumberTextBox");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.ValidationTextBox");
	dojo.require("dijit.form.CheckBox");
</script>
<form jsId="detailForm" id="detailForm" method="post" dojoType="dijit.form.Form">
<table>
<tr>
	<td>
	<@s.text name="locCode"/>：
	</td>
	<td>
		<label id="locCode" name="location.locCode">${(location.locCode)!}</label>
	</td>
	<td>
	<@s.text name="locUse"/>：
	</td>
	<td>
		<label id="locUse" name="location.locUse">${(location.locUse)!}</label>
	</td>
	<td>
	<@s.text name="locType"/>：
	</td>
	<td>
		<label id="locType" name="location.locType">${(location.locType)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="locPro"/>：
	</td>
	<td>
		<label id="locPro" name="location.locPro">${(location.locPro)!}</label>
	</td>
	<td>
	<@s.text name="locIn"/>：
	</td>
	<td>
		<label id="locIn" name="location.locIn">${(location.locIn)!}</label>
	</td>
	<td>
	<@s.text name="locOut"/>：
	</td>
	<td>
		<label id="locOut" name="location.locOut">${(location.locOut)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="maxWeight"/>：
	</td>
	<td>
		<label id="maxWeight" name="location.maxWeight">${(location.maxWeight)!}</label>
	</td>
	<td>
	<@s.text name="maxVolume"/>：
	</td>
	<td>
		<label id="maxVolume" name="location.maxVolume">${(location.maxVolume)!}</label>
	</td>
	<td>
	<@s.text name="maxArea"/>：
	</td>
	<td>
		<label id="maxArea" name="location.maxArea">${(location.maxArea)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="availableWeight"/>：
	</td>
	<td>
		<label id="availableWeight" name="location.availableWeight">${(location.availableWeight)!}</label>
	</td>
	<td>
	<@s.text name="availableVolume"/>：
	</td>
	<td>
		<label id="availableVolume" name="location.availableVolume">${(location.availableVolume)!}</label>
	</td>
	<td>
	<@s.text name="availableArea"/>：
	</td>
	<td>
		<label id="availableArea" name="location.availableArea">${(location.availableArea)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="locationLength"/>：
	</td>
	<td>
		<label id="locationLength" name="location.locationLength">${(location.locationLength)!}</label>
	</td>
	<td>
	<@s.text name="locationWidth"/>：
	</td>
	<td>
		<label id="locationWidth" name="location.locationWidth">${(location.locationWidth)!}</label>
	</td>
	<td>
	<@s.text name="locationHeight"/>：
	</td>
	<td>
		<label id="locationHeight" name="location.locationHeight">${(location.locationHeight)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="xcoord"/>：
	</td>
	<td>
		<label id="xcoord" name="location.xcoord">${(location.xcoord)!}</label>
	</td>
	<td>
	<@s.text name="ycoord"/>：
	</td>
	<td>
		<label id="ycoord" name="location.ycoord">${(location.ycoord)!}</label>
	</td>
	<td>
	<@s.text name="zcoord"/>：
	</td>
	<td>
		<label id="zcoord" name="location.zcoord">${(location.zcoord)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="level"/>：
	</td>
	<td>
		<label id="level" name="location.level">${(location.level)!}</label>
	</td>
	<td>
	<@s.text name="remark"/>：
	</td>
	<td>
		<label id="remark" name="location.remark">${(location.remark)!}</label>
	</td>
	<td>
	<@s.text name="isJump"/>：
	</td>
	<td>
		<label id="isJump" name="location.isJump">${(location.isJump)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="locGid"/>：
	</td>
	<td>
		<label id="locGid" name="location.locGid">${(location.locGid)!}</label>
	</td>
	<td>
	<@s.text name="udf1"/>：
	</td>
	<td>
		<label id="udf1" name="location.udf1">${(location.udf1)!}</label>
	</td>
	<td>
	<@s.text name="udf2"/>：
	</td>
	<td>
		<label id="udf2" name="location.udf2">${(location.udf2)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf3"/>：
	</td>
	<td>
		<label id="udf3" name="location.udf3">${(location.udf3)!}</label>
	</td>
	<td>
	<@s.text name="udf4"/>：
	</td>
	<td>
		<label id="udf4" name="location.udf4">${(location.udf4)!}</label>
	</td>
	<td>
	<@s.text name="udf5"/>：
	</td>
	<td>
		<label id="udf5" name="location.udf5">${(location.udf5)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf6"/>：
	</td>
	<td>
		<label id="udf6" name="location.udf6">${(location.udf6)!}</label>
	</td>
	<td>
	<@s.text name="udf7"/>：
	</td>
	<td>
		<label id="udf7" name="location.udf7">${(location.udf7)!}</label>
	</td>
	<td>
	<@s.text name="udf8"/>：
	</td>
	<td>
		<label id="udf8" name="location.udf8">${(location.udf8)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf9"/>：
	</td>
	<td>
		<label id="udf9" name="location.udf9">${(location.udf9)!}</label>
	</td>
	<td>
	<@s.text name="udf10"/>：
	</td>
	<td>
		<label id="udf10" name="location.udf10">${(location.udf10)!}</label>
	</td>
	<td>
	<@s.text name="udf11"/>：
	</td>
	<td>
		<label id="udf11" name="location.udf11">${(location.udf11)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf12"/>：
	</td>
	<td>
		<label id="udf12" name="location.udf12">${(location.udf12)!}</label>
	</td>
	<td>
	<@s.text name="udf13"/>：
	</td>
	<td>
		<label id="udf13" name="location.udf13">${(location.udf13)!}</label>
	</td>
	<td>
	<@s.text name="udf14"/>：
	</td>
	<td>
		<label id="udf14" name="location.udf14">${(location.udf14)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf15"/>：
	</td>
	<td>
		<label id="udf15" name="location.udf15">${(location.udf15)!}</label>
	</td>
	<td>
	<@s.text name="udf16"/>：
	</td>
	<td>
		<label id="udf16" name="location.udf16">${(location.udf16)!}</label>
	</td>
	<td>
	<@s.text name="udf17"/>：
	</td>
	<td>
		<label id="udf17" name="location.udf17">${(location.udf17)!}</label>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf18"/>：
	</td>
	<td>
		<label id="udf18" name="location.udf18">${(location.udf18)!}</label>
	</td>
</tr>
</table>
<div dojoType="dijit.layout.TabContainer" style="width:100%;">
	<div dojoType="dijit.layout.ContentPane" title="库位组">
		<link rel="stylesheet" href="${(path)!}/js/dojo/dojox/grid/resources/${(theme)!}Grid.css">
		<script language="javascript" type="text/javascript">
			dojo.require("dojox.grid.DataGrid");
			dojo.require("dojox.grid._CheckBoxSelector");
			dojo.require("dojo.data.ItemFileWriteStore");
		</script>
		<div id="locationGrounp" autoHeight="true" style="width: 100%;"
		     dojoType="dojox.grid.DataGrid" singleClickEdit="true" structure="locationGrounp_structure"
		     store="locationGrounp_store">
		</div>
		<div style="width:100%; text-align:center;">
			<input type="button" id="addLocationGrounp" value="增加" class="addRow"/>
			<input type="button" id="deleteLocationGrounp" value="删除" class="deleteRow"/>
		</div>
		<script type="text/javascript" language="javascript">
			var locationGrounp_store = new dojo.data.ItemFileWriteStore({
						data:{
							identifier:"id",
							label:"name",
							items:[
								<#list location.locationGrounp![] as item >
									<#if (item_index > 0)>,</#if>
									{
										"id":"${(item.id)!}"
										,"code": "${(item.code)!}"
										,"name": "${(item.name)!}"
										,"remark": "${(item.remark)!}"
									}
								</#list>
							]
						}
					});
			var locationGrounp_structure = [
				{ type: "dojox.grid._CheckBoxSelector"}
				,
				{cells:[
					[
						new dojox.grid.cells.RowIndex({ width:"2",name:""}),
						{
							"name" : "<@s.text name="code"/>"
							,"field" : "code"
							,"width" :"33%"
							,"editable" : true
							,"headerClasses" : "gridHeader"
						}
						,{
						"name" : "<@s.text name="name"/>"
						,"field" : "name"
						,"width" :"33%"
						,"editable" : true
						,"headerClasses" : "gridHeader"
					}
						,{
						"name" : "<@s.text name="remark"/>"
						,"field" : "remark"
						,"width" :"33%"
						,"editable" : true
						,"headerClasses" : "gridHeader"
					}
					]
				]
				}
			];
			var locationGrounp_index = 0;
			//新增行按钮
			dojo.connect(dojo.byId("addLocationGrounp"), "click", function() {
				locationGrounp_store.newItem({
							"id" : locationGrounp_index
							,"code": ""
							,"name": ""
							,"remark": ""
						});
				locationGrounp_index++;
			})
			//删除行按钮
			dojo.connect(dojo.byId("deleteLocationGrounp"), "click", function() {
				dijit.byId("locationGrounp").removeSelectedRows();
			})
		</script>
	</div>
</div>
<@listButton btnSave=false btnClear=false/>
</form>
</@html>
